package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.CommoditySeasonMapper;
import com.richest.api.service.ICommoditySeasonService;
import com.richest.bean.CommoditySeasonBean;

/**
 * 商品时令信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class CommoditySeasonServiceImpl implements ICommoditySeasonService {

	@Autowired
	private CommoditySeasonMapper mapper;

	@Override
	public Integer commoditySeasonAdd(CommoditySeasonBean bean) {
		return mapper.commoditySeasonAdd(bean);
	}

	@Override
	public Integer commoditySeasonUpdate(CommoditySeasonBean bean) {
		return mapper.commoditySeasonUpdate(bean);
	}

	@Override
	public Integer commoditySeasonDelete(Long id) {
		return mapper.commoditySeasonDelete(id);
	}

	@Override
	public CommoditySeasonBean commoditySeasonSelectOne(Long id) {
		return mapper.commoditySeasonSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> commoditySeasonSelectMap(Map<String, Object> params) {
		return mapper.commoditySeasonSelectMap(params);
	}
}
